#include <unistd.h>
#include <crypt.h>
#include <stdio.h>

int main() {
const char *password = "zs";
const char *salt = "$6$EcGQ/umB$"; // 使用SHA-512算法

char *encrypted = crypt(password, salt);
if (encrypted == NULL) {
  perror("计算失败 \n");
  return 0;
}

printf("password: %s\n", encrypted);
return 0;
}
